package com.hsd.znsh.pojo.input;

import com.hsd.znsh.validator.Phone;
import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-04-23 16:16:40
 */
@Data
public class UserInfoInput {

    private Integer id;

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "手机号不能为空")
    @Phone(message = "手机号码格式错误")
    private String phone;

    @Email(message = "邮箱格式错误")
    private String email;

    @NotNull(message = "用户类型不能为空")
    private Integer userType;

    private String hIKUsername;

    private String hIKPassword;

    private Integer createUserId;

    private String monitors;

    private String sensorGroups;
}
